package com.tsing.cedap.rest.controller;

import com.tsing.cedap.common.annotations.SystemLog;
import com.tsing.cedap.common.utils.ResultUtil;
import com.tsing.cedap.common.vo.ResultData;
import com.tsing.cedap.rest.service.IMiniCommonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author TheTsing
 * @create 2022-02-25 9:41
 */
@Api(tags = "小程序公共模块")
@RestController
@RequestMapping("/miniCommon")
public class MiniCommonController {

    @Autowired
    private IMiniCommonService miniCommonService;

    @PostMapping("/becomeRider")
    @ApiOperation(value = "申请成为注册服务人员")
    @SystemLog(description = "申请成为注册服务人员")
    public ResultData becomeRider(HttpServletRequest request) {
        miniCommonService.becomeRider(request);
        return ResultUtil.success();
    }


}
